package com.example.demoserver.controller;

import com.example.demoserver.entity.InteApplog;
import com.example.demoserver.entity.InteAppstate;
import com.example.demoserver.service.InteApplogService;
import com.example.demoserver.service.InteAppstateService;
import com.example.demoserver.service.impl.InteAppstateServiceImpl;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/log")
@RequiredArgsConstructor
@Component
public class InteApplogController {
    private final InteApplogService inteApplogService;
    @GetMapping("/selectall")
    public List<InteApplog> selectAll () {
        List<InteApplog> list=inteApplogService.selectAll();
        return list;
    }
}
